import { Base } from '../../utils/base.js';

class Config extends Base {
  //构造方法-调用调用父级方法-》super()
  constructor() {
    super();
  }
  //获取商品配置信息
  getConfigData(id, callback) {
    var that = this;
    // console.log(wx.getStorageSync('token'));
    var param = {
      url: 'Config/' + id,
      header: {
        'content-type': 'application/json',

      },
      sCallback: function (data) {
        callback && callback(data);
      }

    };
    this.request(param);

  };
}

export { Config }